#include "AnMainwin.h"
#include "AnGlobal.h"
#include "_SetApppageCallback.h"

void * _set_apppage_cb;    //接受系统信号和请求回应的示例

void AnMainwin::setApppage()
{
    _set_apppage_cb = (void *) new _SetApppageCallback(this);

    QObject::connect(sys_callback, SIGNAL(connect_build()),
                     (_SetApppageCallback *) _set_apppage_cb, SLOT(connect_build()));
    QObject::connect(sys_callback, SIGNAL(connect_close()),
                     (_SetApppageCallback *) _set_apppage_cb, SLOT(connect_close()));
    QObject::connect(ap->pushButton_app_refresh, SIGNAL(clicked()),
                     (_SetApppageCallback *) _set_apppage_cb, SLOT(refresh_clicked()));
    QObject::connect(ap->pushButton_app_install, SIGNAL(clicked()),
                     (_SetApppageCallback *) _set_apppage_cb, SLOT(app_install_clicked()));
    QObject::connect(ap->pushButton_app_uninstall, SIGNAL(clicked()),
                     (_SetApppageCallback *) _set_apppage_cb, SLOT(app_uninstall_clicked()));
}
